import request from "@/utils/request.js"

/**
 * 添加日程
 * @param {Object} data
 */
export function addSchedule(data) {
	return request({
		url: "/app/schedule",
		method: "POST",
		params: data,
		standard: true
	})
}

/**
 * 获取日程
 */
export function getSchedule(data) {
	return request({
		url: "/app/schedule/listAll",
		method: "GET",
		params: data,
	})
}

/**
 * 删除日程
 */
export function deleteSchedule(id) {
	return request({
		url: "/app/schedule/delete/" + id,
		method: "POST",
	})
}